package com.allming.boot.baidu.map.model;

import lombok.Getter;
import lombok.Setter;

/**
 * 普通IP定位服务响应实体
 * @author ming
 * @date 2020-07-13 14:11
 * <p>company: 杭州行装网络技术有限公司</p>
 * <p>修改履历：</p>
 */
public class LocationIpResp {

    /**
     * address : CN|北京|北京|None|CHINANET|1|None
     * content : {"address":"北京市","address_detail":{"city":"北京市","city_code":131,"province":"北京市"},"point":{"x":"116.39564504","y":"39.92998578"}}
     * status : 0
     */

    @Getter
    @Setter
    private String address;
    @Getter
    @Setter
    private ContentBean content;
    @Getter
    @Setter
    private Integer status;

    public static class ContentBean {
        /**
         * address : 北京市
         * address_detail : {"city":"北京市","city_code":131,"province":"北京市"}
         * point : {"x":"116.39564504","y":"39.92998578"}
         */
        @Getter
        @Setter
        private String address;
        @Getter
        @Setter
        private AddressDetailBean address_detail;
        @Getter
        @Setter
        private PointBean point;

        public static class AddressDetailBean {
            /**
             * city : 北京市
             * city_code : 131
             * province : 北京市
             */
            @Getter
            @Setter
            private String city;
            @Getter
            @Setter
            private Integer city_code;
            @Getter
            @Setter
            private String province;
        }

        public static class PointBean {
            /**
             * x : 116.39564504
             * y : 39.92998578
             */
            @Getter
            @Setter
            private String x;
            @Getter
            @Setter
            private String y;
        }
    }
}
